package JS;
import java.io.Serializable;
import java.util.Random;


public class SensorData implements Serializable{
	private double longitude;
	private double latitude;
	private double elevation;
	private double temperature;
	private static Random random = new Random();
	
	public double getLongitude() {
		return longitude;
	}
	public double getLatitude() {
		return latitude;
	}
	public double getDepth() {
		return elevation;
	}
	public double getTemperature() {
		return temperature;
	}
	
	public static SensorData generate() {
		SensorData result = new SensorData();
		result.longitude = random.nextDouble();
		result.latitude = random.nextDouble();
		result.elevation = random.nextDouble();
		result.temperature = random.nextDouble();
		return result;
	}
}